<extend name="Layout::designer"/>
            <!-- 左菜单区域结束-->
            <!--右内容区域-->
            <block name="content">
                <div class="layout-content">
                    <div class="mt15 pr15">
                        <form action="{:U('index')}" method="get" class=" form-inline form-search mt15">
                            <div class="form-group">
                                <label>关键字搜索</label>
                                <input type="text" placeholder="输入名字" class="form-control input-sm js-clear" name="name"
                                       value="<?php echo $_SESSION['like']['designer']; ?>" focus="clear()"/>
                                <button type="submit" class="btn btn-success btn-sm">
                                    <span class="glyphicon glyphicon-search"></span> 搜索
                                </button>
                            </div>

                            <a href="{:U('Designer/create')}"  class="btn btn-sm btn-success pull-right">添加设计师</a>
                        </form>

                    </div>



                    <div class="clearfix"></div>


                    <!--content-main start-->
                    <div class="container-fluid content-main">
                        <div class="row">
                            <div class="col-md-12">
                                </form>
                                <table class="table table-hover mt15">
                                    <thead>
                                    <tr>
                                        <th>设计师</th>
                                        <th>设计师照片</th>
                                        <th>设计风格</th>
                                        <th>设计理念</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <notempty name="list">
                                        <foreach name="list" item="val">
                                            <tr class="pages">
                                                <td>
                                                    {$val.name}
                                                </td>
                                                <td>
                                                    <img src="__PUBLIC__/upload/{$val.pic}" height="40px;">
                                                </td>
                                                <td>
                                                    {$val.style_id}
                                                </td>
                                                <td>
                                                    {$val.idea}
                                                </td>
                                                <td>
                                                    <a href="{:U('update',['id'=>$val['id']])}">修改</a>|
                                                    <a href="{:U('del',['id'=>$val['id']])}">删除</a>
                                                </td>
                                            </tr>
                                        </foreach>

                                        <else/>
                                        <tr>
                                            <td colspan="4" align="center">
                                                没有设计师
                                            </td>
                                        </tr>
                                    </notempty>
                                    </tbody>
                                </table>

                                <div class="pull-right">
                                 <span class="pagination">
                                        {$page}
                                 </span>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                        </div>

                    </div>
                    <!--content-main end-->
                </div>

                <script>
                    function clear(){

                        alert($('.js-clear'));
                      
                    }
                </script>
            </block>
            <!--右内容区域结束-->

